<template>
    <div class="d-flex">
        <!-- 侧边栏 -->
        <sidebar class="col-3"></sidebar>
        <!-- 内容修改区域 -->
        <note-content :notesList="notesList"></note-content>
    </div>
</template>
  
<script>
import sidebar from './Sidebar.vue/sidebar.vue'
import NoteContent from './notecontent/noteContent.vue'

export default {
    name: 'Notes',
    data() {
        return {
            // 笔记的数据
            notesList: [],
        }
    },
    async mounted() {
        const { data } = await this.$http.post('/my/getnotes')
        this.notesList = data.data
    },
    components: {
        sidebar,
        NoteContent,
    }
}
</script>
  
<style lang="less" scoped>

</style>
  